﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Compilex.BaseLibrary
{
    public static class ArrayUtils
    {
        public static void Copy<T>(T[] source, T[] destination)
        {
            if (destination.Length < source.Length)
                throw new ArgumentException("O tamanho de \"destination\" deve ser maior do "
                    + "que o de \"source\"");
            for (int i = 0; i < source.Length; i++)
                destination[i] = source[i];
        }
    }
}
